package com.cuit.qx.mapper;

import com.cuit.qx.entity.CorrectForecast;
import com.cuit.qx.entity.RiskWarning;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 风险预警表 Mapper 接口
 * </p>
 *
 * @author lcj
 * @since 2021-11-23
 */
@Mapper
public interface RiskWarningMapper extends BaseMapper<RiskWarning> {
    public List<RiskWarning> forecastList(@Param("pattern") int pattern,
                                              @Param("startDate")String startDate,
                                              @Param("startTime")String startTime,
                                              @Param("time")String time);

    public int updateWarning(@Param("timeValue") String timeValue,
                             @Param("reiskId") int reiskId,
                             @Param("id")int id);
}
